// eDasResultCode.h : Declaration of the eDAS result codes

#ifndef __EDAS_RESULT_CODE_H_
#define __EDAS_RESULT_CODE_H_

// HRESULT define
#define CHICTION ('C'+'H'+'I'+'C'+'T'+'I'+'O'+'N')
#define HRESULT_FROM_CHICTION(x)   ((HRESULT) (((x) & 0xD8FFFFFFL) | (0x20000000L) | ((CHICTION << 24) & 0x07000000L)))
#define EDASEXPRESS ('E'+'D'+'A'+'S'+'E'+'X'+'P'+'R'+'E'+'S'+'S')
#define FACILITY_EDASEXPRESS HRESULT_FROM_CHICTION(EDASEXPRESS << 16)
#define E_EDASEX_BAD_USERNAME MAKE_HRESULT(SEVERITY_ERROR,FACILITY_EDASEXPRESS,ERROR_BAD_USERNAME)
#define MAKE_EDASEX_HRESULT(code)	MAKE_HRESULT(SEVERITY_ERROR,FACILITY_EDASEXPRESS,code)
#define BAD_ROLENAME	0x2001L
#define E_EDASEX_BAD_ROLENAME	MAKE_EDASEX_HRESULT(BAD_ROLENAME)
#define DO_NOTHING		0x3001L
#define E_EDASEX_DO_NOTHING		MAKE_EDASEX_HRESULT(DO_NOTHING)
#define REFUSED			0x3002L
#define E_EDASEX_REFUSED		MAKE_EDASEX_HRESULT(REFUSED)
#define E_EDASEX_ACCEPT			S_OK

#endif